import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path';
import dynamicImportVars from '@rollup/plugin-dynamic-import-vars';


// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(),
    //动态引入组件的插件
  dynamicImportVars({
    // 指定要转换的变量名称
    include: ['**/*.vue'],
  }),
  ],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
    },
  },
})
